<?php
$this->breadcrumbs=array(
	'Articles'=>array('index'),
	$model->id,
);

$this->menu=array(
	array('label'=>'List Article', 'url'=>array('index')),
	array('label'=>'Create Article', 'url'=>array('create')),
	array('label'=>'Update Article', 'url'=>array('update', 'id'=>$model->id)),
	array('label'=>'Delete Article', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Are you sure you want to delete this item?')),        
	array('label'=>'Manage Article', 'url'=>array('admin')),
);
if ( Yii::app()->user->checkAccess('approver', array('article' => $model))
| Yii::app()->user->checkAccess('ADMIN', array('article' => $model))){
    $this->menu[] = array('label'=>'Add User To Article', 'url'=>array('adduser', 'id'=>$model->id));
}
?>

<h1>View Article #<?php echo $model->id; ?></h1>

<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		'id',
                array(
                    'name'=>'zone_id',
                    'value'=> CHtml::encode($model->getZoneText()),
                ),
		'version',
                array(
                    'name'=>'approved',
                    'value'=> CHtml::encode($model->getApprovedText()),
                ),
                array(
                    'name'=>'edited',
                    'value'=> CHtml::encode($model->getEditedText()),
                ),
                array(
                    'name'=>'archived',
                    'value'=> CHtml::encode($model->getArchivedText()),
                ),
                array(
                    'name'=>'protected',
                    'value'=> CHtml::encode($model->getProtectedText()),
                ),
		'headline',
		'source',
                array(
                    'name'=> 'topic_id',
                    'value'=> CHtml::encode($model->getTopicText()),
                ),
		//'author_id',
                array(
                    'name'=> 'author_id',
                    'value'=> CHtml::encode($model->getAuthorText()),
                ),
		'body',
                array(
                    'name'=> 'editor_id',
                    'value'=> CHtml::encode($model->getEditorText()),
                ),
                array(
                    'name'=> 'approver_id',
                    'value'=> CHtml::encode($model->getApproverText()),
                ),
		'update_time',
		'create_time',
	),
)); ?>
